﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace SX.Core
{
    /// <summary>
    /// 分页查询结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageResult<TEntity> where TEntity : class, new()
    {   
        /// <summary>
        /// 总数
        /// </summary>
        public long TotalCount { get; set; }
        /// <summary>
        /// 数据集合
        /// </summary>
        public IList<TEntity> Rows { get; set; }

        /// <summary>
        /// 其他数据
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public object Data { get; set; }
    }
}
